Blitz (206/640)

From:Mathias PARNAUDEAU
Date:3 Sep 99 at 08:20:28
Subject:Re: Signed and Unsign numbers; Please help

Stephen Lebed wrote:
>
> Hi everyone,
>
> I need to be able to hold values from 0 to 65535 in a word, but Blitz only
> allows me a signed value from -32768 to 32767. How can I get this to work.

With Blitz, it's impossible to use unsigned types. You must use a long
value to store a such number (65535 in this case).

> If I type
>
> a.w=65535
> Nprint a
>
> The answer that I get is
>
> -1

Due to a binary reason. Sorry I haven't time today to explain ...

Cheers,

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie